package com.alex.utils.common;

public class Random {

	private static final java.util.Random RANDOM = new java.util.Random();
	
	public static int getIntRange(int min, int max) {
		int rand = RANDOM.nextInt();
		if (rand < 0)
			rand = -rand;
		return rand % (max - min + 1) + min;
	}

	public static int getInt(int max) {
		return RANDOM.nextInt(max);
	}

	public static void setSeed(long seed) {
		RANDOM.setSeed(seed);
	}

	public static java.util.Random getRandom() {
		return RANDOM;
	}
	
	
}